package com.my.chapter10;

public class practice8 {
    public static void main(String[] args) {
        Outer8 o = new Outer8();
        o.getInner();
    }
}

class Outer8{
    class Inner8{
        private String content = "A";
        int value = 6;
        public char record = 'c';
        private void update(){
            System.out.println("update");
        }
        void display(){
            System.out.println("Inner.content= "+content);
        }
    }
    void getInner(){
        //System.out.println("Inner.content= "+content); Error:Cannot resolve symbol 'content'
        //System.out.println("Inner.value= "+value);Error:Cannot resolve symbol 'value'
        //System.out.println("Inner.record= "+record);Error:Cannot resolve symbol 'record'
        Inner8 i = new Inner8();
        System.out.println("Inner.content= "+i.content);
        System.out.println("Inner.value= "+i.value);
        System.out.println("Inner.record= "+i.record);
    }
}

